package com.immac.chan.util;

import java.io.File;
import java.io.FileInputStream;

public class LeeJCFileInputStream {
	public static String readLine(String pathname) throws Exception {
		FileInputStream fileInStream = new FileInputStream(new File(pathname));
		String str = "";
		int input = fileInStream.read();

		while (input != '\n') {
			if (input != '\r') {
				str += (char)input;
			}
			input = fileInStream.read();
		}

		return str;
	}
}
